<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>8-赋值运算符</title>
	</head>
	<body>
		<script type="text/javascript">
			//+= -= %= *=
			var age = 10;
			var x = age+=2;//age+=2相当于age = age+2;
			console.log("x::"+x);//12
			
			var y = age-=3;
			console.log("y::"+y);//9
			
			var z = age*=2;//18
			
			var u = age%=3;//0
			//y::9--z::18--u::0
			console.log("y::"+y+"--z::"+z+"--u::"+u);
			
		</script>
	</body>
</html>
